<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Cmis File Picker</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="bower_components/fontawesome/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="bower_components/angular-toastr/dist/angular-toastr.css" />
    <link rel="stylesheet" type="text/css" href="bower_components/animate.css/animate.min.css" />
    <!--<link rel="stylesheet" type="text/css" href="src/style/common.css" />-->
    <!--<link rel="stylesheet" type="text/css" href="src/style/tree-style.css" />-->
    <!--<link rel="stylesheet" type="text/css" href="src/style/style.css" />-->
    <link rel="stylesheet" type="text/css" href="src/theme/default.css" />
    <style type="text/css">
        html,body{
            height: 100%;
        }
    </style>
</head>
<body>
<!--<cmis base-url="https://cloud-docker.connectedpdf.com/"-->
      <!--cweb-tools-api="http://cwebtools-docker.connectedpdf.com/convert.jsp"-->
      <!--file-picker-modal="saveAs"-->
      <!--from-fill-and-sign=""-->
      <!--device="mobile"-->
      <!--class="platform platform-mobile"-->
      <!--is-drm-room="false" lang="US" membership-type="Owner"-->
      <!--message-to-member="" path="/User_Homes/qq/co/123%40qq.com/Reading"-->
      <!--plugin-ui=""-->
      <!--repository="fxcld" room-link=""-->
      <!--show-members="true"-->
      <!--token="59af9b3fe4b0338389fc672f%2C123%40qq.com" url="https://cloud-docker.connectedpdf.com/cmis/browser">-->
<!--</cmis>-->
<!--

    props
        params


    class
        platform platform-mobile  // mobile class
    device
        mobile
    file-picker-modal params
        saveAs
    file-list  params
        Reading
        Files_Shared_with_Me
        Reading/ConnectedPDF
        Reading/ConnectedPDF/cDRM
    body-class
        custom class
    plugin-ui
        pluginList
    file-select-mode
        single
    phantom-subscription-status
        1     //该参数决定是否可以 使用 merge 等高级功能
        -1      // 表示不可用
    project
        cpdf360  //表示 cpdf360项目使用drive 此参数来决定 template path
    lang
        US //语言参数
        en-US zh-CN //等支持18国语言
    repository
        fxcld  // cmis 仓库
    is-enterprise-site
        true false  //是否是企业站点
    base-url
        https://cloud-docker.connectedpdf.com/    //云接口 baseUrl
    cpdf-doc-base-url
        https://beta-docker.connectedpdf.com/    // cpdf360 接口 base url
    cpdf-base-url
        https://cws-docker.connectedpdf.com/    // cws 接口 base url cpdf360项目会使用到
    dow-owner
        true false   // default true if not set   cpdf360查看企业其他用户文档时候可用
-->
<!--  mobile config below  -->
<!--<cmis base-url="https://cloud-docker.connectedpdf.com/" class="platform platform-mobile"-->
      <!--cweb-tools-api="http://cwebtools-docker.connectedpdf.com/convert.jsp"-->
      <!--device="mobile" file-list="Files_Shared_with_Me" file-picker-modal=""-->
      <!--file-select-mode="" from-fill-and-sign="" is-drm-room="false" is-enterprise-site="false"-->
      <!--lang="CN" membership-type="Owner" message-to-member="" path="/User_Homes/ad/mi/admin%40gmail.com/Reading"-->
      <!--phantom-subscription-status="true" plugin-ui="" repository="fxcld" room-link="" show-members="true"-->
      <!--token="5b35a409e4b08ed660460923%2Cadmin%40gmail.com" url="https://cloud-docker.connectedpdf.com/cmis/browser">-->
<!--</cmis>-->


<!-- cpdf doc config below -->
<!--<cmis base-url="https://cloud-docker.connectedpdf.com/" class="platform platform-mobile container-fluid"-->
      <!--body-class="" cpdf-base-url="https://cws-docker.connectedpdf.com/"-->
      <!--cpdf-doc-base-url="https://cpdfdoc-docker.connectedpdf.com/"-->
      <!--cweb-tools-api="http://cwebtools-docker.connectedpdf.com/convert.jsp"-->
      <!--device="mobile" file-list="Files_Shared_with_Me"-->
      <!--file-picker-modal="" file-select-mode="" from-fill-and-sign=""-->
      <!--is-drm-room="false" is-enterprise-site="false" lang="US"-->
      <!--membership-type="Owner" message-to-member=""-->
      <!--path="/User_Homes/pr/op/prophet%40qq.com/Reading"-->
      <!--phantom-subscription-status="-1" plugin-ui=""-->
      <!--repository="fxcld" room-link="" show-members="true"-->
      <!--token="5b30aef9e4b020413aa453f3%2Cprophet%40qq.com" url="https://cloud-docker.connectedpdf.com/cmis/browser">-->
<cmis
        url="https://cloud-docker.connectedpdf.com/cmis/browser"
        token="58f41fcde4b02081a2ed7f47,ww002@mailinator.com"
        path="/User_Homes/ww/ma/ww002@mailinator.com/Reading"
        is-drm-room="false"
        show-members="true"
        is-enterprise-site="false"
        dow-owner="true"
        membership-type="Owner"
        lang="US"
        project="cpdf360"
        body-class=""
        phantom-subscription-status="-1"
        plugin-ui=""
        file-select-mode=""
        repository = "fxcld"
        device="phantom-online"
        file-picker-modal=""
        from-fill-and-sign=""
        base-url="https://cloud-docker.connectedpdf.com/"
        cpdf-doc-base-url="https://beta-docker.connectedpdf.com/"
        cpdf-base-url="https://cws-docker.connectedpdf.com/"
        cweb-tools-api="http://cwebtools-docker.connectedpdf.com/convert.jsp"
>
</cmis>



<script type="text/javascript" src="src/language/da-DK.js"></script>
<script type="text/javascript" src="src/language/de-DE.js"></script>
<script type="text/javascript" src="src/language/en-US.js"></script>
<script type="text/javascript" src="src/language/es-419.js"></script>
<script type="text/javascript" src="src/language/fr-FR.js"></script>
<script type="text/javascript" src="src/language/it-IT.js"></script>
<script type="text/javascript" src="src/language/ja-JP.js"></script>
<script type="text/javascript" src="src/language/ko-KR.js"></script>
<script type="text/javascript" src="src/language/nl-NL.js"></script>
<script type="text/javascript" src="src/language/pl-PL.js"></script>
<script type="text/javascript" src="src/language/pt-PT.js"></script>
<script type="text/javascript" src="src/language/pt-BR.js"></script>
<script type="text/javascript" src="src/language/ru-RU.js"></script>
<script type="text/javascript" src="src/language/fi-FI.js"></script>
<script type="text/javascript" src="src/language/nb-NO.js"></script>
<script type="text/javascript" src="src/language/sv-SE.js"></script>
<script type="text/javascript" src="src/language/zh-CN.js"></script>
<script type="text/javascript" src="src/language/zh-HK.js"></script>
<script type="text/javascript" src="src/language/zh-TW.js"></script>

<script type="text/javascript" src="bower_components/FileSaver/FileSaver.js"></script>
<script type="text/javascript" src="bower_components/base64/base64.min.js"></script>
<script type="text/javascript" src="bower_components/superagent/superagent.js"></script>
<script type="text/javascript" src="bower_components/smx-cmis/lib/cmis.js"></script>
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="bower_components/angular-local-storage/dist/angular-local-storage.js"></script>
<script type="text/javascript" src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script type="text/javascript" src="bower_components/angular-translate/angular-translate.js"></script>
<script type="text/javascript" src="bower_components/angular-toastr/dist/angular-toastr.tpls.js"></script>
<script type="text/javascript" src="lib/ng-context-menu.js"></script>
<script type="text/javascript" src="lib/hover-menu.js"></script>
<script type="text/javascript" src="bower_components/angular-file-model/angular-file-model.js"></script>
<script type="text/javascript" src="bower_components/clipboard/dist/clipboard.js"></script>
<script type="text/javascript" src="bower_components/ngclipboard/dist/ngclipboard.js"></script>
<script type="text/javascript" src="bower_components/ngInfiniteScroll/build/ng-infinite-scroll.js"></script>
<script type="text/javascript" src="bower_components/angular-animate/angular-animate.js"></script>
<script type="text/javascript" src="bower_components/jquery-qrcode/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="bower_components/clipboard/dist/clipboard.js"></script>

<!-- develop -->
<script type="text/javascript" src="src/cmis-directive.js"></script>
<script type="text/javascript" src="src/service.js"></script>
<script type="text/javascript" src="src/controllers.js"></script>
<script type="text/javascript" src="src/models.js"></script>
<script type="text/javascript" src="src/main-controller.js"></script>
<script type="text/javascript" src="src/modal-controller.js"></script>
<script type="text/javascript" src="src/filter.js"></script>
<script type="text/javascript" src="src/directives/file-dropzone.js"></script>
<script type="text/javascript" src="src/directives/drag-and-drop.js"></script>
<script type="text/javascript" src="src/directives/selection-area.js"></script>
<script type="text/javascript" src="src/directives/breadcrumb.js"></script>
<script type="text/javascript" src="src/directives/common.js"></script>
<script type="text/javascript" src="src/directives/cloud-reading-share.js"></script>
<script type="text/javascript" src="src/directives/emails-input.js"></script>
<script type="text/javascript" src="src/directives/emails-input-for-cdrm.js"></script>
<!--<script src="extend-for-java.js"></script>-->

<!--<script src="dist/cmis-directive.min.js"></script>-->
<script type="text/javascript">
    //	function viewDocument(objectId, downloadUrl, indexUrl , fileName, fileSize, fileHash){
    //		console.log (objectId, downloadUrl, indexUrl, fileName, fileSize, fileHash)
    //	}
    //    readerPluginVersion = '8.1.0.1.3';

    /***
     * 企业用户组
     * docker 环境配置成 支持group 组的方法  https://jira.foxitsoftware.cn/browse/CVAS-1971
     * getAllGroups 是获取组信息的 方法
     * 在调试 企业组的时候使用
     *
    ***/
    //

/////////  group start
//    function getAllGroups(callback){
//
//        window.sharePlugin.groups=null;
//        window.sharePlugin.groupsIdArray=[];
//        window.sharePlugin.groupsNameArray=[];
//        window.sharePlugin.groupsNameToIdMap={};
//        window.sharePlugin.groupsIdToNameMap={};
//
//        var url = 'https://www-fz03.connectedpdf.com' + '/cpdfapi/v1/users/group?access-token=' + '5a5d8d0fe4b001228021c0e8%2Cprophet_wang%40foxitsoftware.cn';
//        //console.log(Promise);
//        //var deferred = new Promise();
//        $.ajax({
//            type: 'GET',
//            url: url,
//            success: function(data) {
//                console.log(data);
//                if (data && data.ret === 0) {
//                    if(data.data && data.data.groups && data.data.groups.length>0){
//                        callback && callback(data.data.groups);
//                    }else{
//                        callback && callback('');
//                    }
//                } else {
//                    callback && callback('');
//                }
//            },
//            error: function(err) {
//                if (err) {
//                    FX.app.log(err);
//                }
//                callback && callback('');
//            }
//        });
//    }
//
//    getAllGroups(function(groupInfo){
//        var groups = groupInfo;
//        if(groups){
//            window.sharePlugin.groups=groups;
//            for(var groupIndex=0;groupIndex<groups.length;groupIndex++){
//                window.sharePlugin.groupsNameArray.push(groups[groupIndex]['groupName']);
//                window.sharePlugin.groupsIdArray.push(groups[groupIndex]['groupId'].toLowerCase());
//                window.sharePlugin.groupsNameToIdMap[groups[groupIndex]['groupName']]=groups[groupIndex]['groupId'].toLowerCase();
//                window.sharePlugin.groupsIdToNameMap[groups[groupIndex]['groupId'].toLowerCase()]=groups[groupIndex]['groupName'];
//            }
//        }else{
//            window.sharePlugin.groups=null;
//        }
//        angular.module('test', ['UCX.Cmis']);
//        angular.element(document).ready(function () { angular.bootstrap(document, ['test']); })
//    })
/////////  group end



    window.ga = function(type,options){
        console.log('====test ga')
        console.log(options)
    }
    window.mergePdf = function(){

    }
    window.organizePDFPage = function(){

    }

    // 下面的参数 决定 share link  cReaderEnable 1 的时候会使用 creaderurl 来组成 分享链接
    $.ajax({
        type:'GET',
        url:'https://cws-docker.connectedpdf.com/cpdfapi/v1/server/server-config',
        success:function (data) {
            console.log('=====success server config')
            console.log(data)
            if(data && data.ret===0){
                window.cReaderEnable=data.data.cReaderEnable
                window.cReaderUrl=data.data.cReaderUrl
            }

            angular.module('test', ['UCX.Cmis']);
            angular.element(document).ready(function () { angular.bootstrap(document, ['test']); })
        }
    })

    // angular.module('test', ['UCX.Cmis']);
    // angular.element(document).ready(function () { angular.bootstrap(document, ['test']); })

    //    window.viewDocument = function(objectId, downloadUrl, indexUrl, fileName, fileSize){
    //        console.log(objectId)
    //        console.log(downloadUrl)
    //        console.log(indexUrl)
    //        console.log(fileName)
    //        console.log(fileSize)
    //
    //    };
</script>

</body>
</html>
